package com.bluesimon.wbf.usercenter;

import com.bluesimon.wbf.usercenter.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Django on 2017/7/22.
 */
public interface UserRepository extends JpaRepository<User, String> {

    public List<User> findByUserNameAndPassword(String loginName, String password);

    public List<User> findByUserName(String loginName);

}
